package com.zto.sch.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: javatest
 * @description:
 * @author: sch
 * @create: 2020-06-12 22:20
 **/
@Service("userDao1")
public class UserDaoImpl1 implements UserDao {
    @Autowired
    @Resource(name = "userDao")
    private UserDao userDao;

    public UserDaoImpl1() {
//        new UserDaoImpl();
        System.out.println("userdaoImpl1 constructor");
    }

    @Override
    public void save() {
        System.out.println("userdaoImpl1 save");
    }

    @Override
    public String query() {
        return null;
    }

    @Override
    public String query(String id) {
        return null;
    }
}
